﻿namespace Text2Rss.Web.Models
{
	#region Using Directives
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Text;
	using Text2Rss.Web.Code;
	#endregion

	/// <summary>
	/// Model for User
	/// </summary>
	public class User : VersionedEntity<string>
	{
		/// <summary>
		/// Initializes a new instance of the User class
		/// </summary>
		public User()
		{
		}

		/// <summary>
		/// Gets or sets user name
		/// </summary>
		public virtual string Name { get; set; }

		/// <summary>
		/// Gets or sets password Hash
		/// </summary>
		public virtual string PasswordHash { get; set; }

		/// <summary>
		/// Gets or sets email of the user
		/// </summary>
		public virtual string Email
		{
			get
			{
				return Id;
			}

			set
			{
				Id = value;
			}
		}

		/// <summary>
		/// Gets or sets a value indicating whether the user is an admin
		/// </summary>
		public virtual bool IsAdmin { get; set; }
	}
}
